import { type IVxueColumnConfig, tableUtils } from '@/components/table'
export * from './type'

const columnConfig: IVxueColumnConfig[] = [
  {
    field: 'customerName',
    title: '客户名称',
    width: 120
  },
  {
    field: 'customerClientId',
    title: '客户机号',
    width: 120
  },

  {
    field: 'workshopId',
    title: '车间号',
    width: 120
  },
  {
    field: 'productionLineId',
    title: '产线号',
    width: 120
  },
  {
    field: 'agentVersion',
    title: '代理版本',
    width: 120
  },
  {
    field: 'agentStatus',
    title: '连接状态',
    slot: 'agentStatus',
    width: 100
  },
  {
    field: 'agentReportTime',
    title: '最新上报时间'
    // width: 140
  },
  {
    field: 'createTime',
    title: '注册时间',
    width: 200
  },
  {
    field: 'onlineTotal',
    title: '累计在线时长',
    slot: 'onlineTotal',
    width: 140
  },
  {
    field: 'disconnect',
    title: '最新失联时长',
    slot: 'disconnect',
    width: 140
  }
]

tableUtils.setChecked(columnConfig)

export { columnConfig }
